package com.example.demo;

import cn.hutool.http.HttpUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author cjbi
 * @date 2017/12/16
 */
@Controller
@RequestMapping()
public class LogController {


    @PostMapping("/area")
    @ResponseBody
    public String queryList(@RequestParam String id) {
        String url = "http://www.xinyu.gov.cn/u/search/searchtree?site_code=fenyi&channel_id=" + id + "&currentPage=1&number=1000";
        String post = HttpUtil.post(url, "");
        System.out.println(post);
        return post;
    }

}
